Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

213
Views
No se puede instalar "@react-navigation/stack" usando `npm install @react-navigation/stack` en reactNative

En la aplicación React Native para hacer una navegación, es necesario instalar @react-navigation/stack usando npm install @react-navigation/stack y lo probé y fallé todas y cada una de las veces.

Versión de NPM: 7.19.1 Versión de nodo: v15.14.0 Versión de Expo: 4.8.1

Después de ejecutar npm install @react-navigation/stack este comando me ha dado el siguiente error:

 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: undefined@undefined npm ERR! Found: @react-navigation/native@3.8.4 npm ERR! node_modules/@react-navigation/native npm ERR! @react-navigation/native@"^3.8.4" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @react-navigation/native@"^6.0.0" from @react-navigation/stack@6.0.1 npm ERR! node_modules/@react-navigation/stack npm ERR! @react-navigation/stack@"*" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /home/imdadul/.npm/eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! /home/imdadul/.npm/_logs/2021-08-04T07_46_39_555Z-debug.log

Nota: Por favor, preocúpese por el archivo adjunto y quienes tengan conocimiento sobre esto serán útiles para ayudarme. Avanzado ¡Gracias!

ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Tiene un conflicto de dependencia, lo que significa que la dependencia es incorrecta y potencialmente rota. Puede intentar ejecutar el comando con --force o --legacy-peer-deps y ver si eso ayuda.

 npm install @react-navigation/stack --force

o

 npm install @react-navigation/stack --legacy-peer-deps

A veces, eliminar los archivos node_modules y package-lock.json y ejecutar el comando npm install @react-navigation/stack o probar npm cache clean --force puede funcionar.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!